import { useSelector } from 'react-redux'

// 格式: [{ path, name, children, meta: { hasAuthIn?, notNeedAuth?, title } }]
// eg: hasAuthIn 应用/conf 目录
export const useSelectRouter = () => useSelector((state) => state.router.value.routes)
// 格式：[{ key, icon, label, chilren? }]
export const useSelectMenus = () => useSelector((state) => state.router.value.menus)
export const useSelectorUser = () => useSelector((state) => state.user.user)
